  <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
   <!-- Login Starts Here -->
            <div id="loginContainer">
            <form id="logout" action="./LogOut" method="post">
            <input id="logoutURL" type="hidden" name="url" value=""/>
            </form>
            <c:choose>
	            <c:when test="${leagueUserAuth != null}">
	            <p id="head_name"><a href="./home.jsp?league=<c:out value="${leagueUserAuth.leagueId}" />" id="cardNum"><span class="userInfor">进入我的主页</span></a>
	            <a href="javascript:void(0)" id="cardNum"><span class="userInfor"><c:out value="${leagueUserAuth.username}" />&nbsp;</span></a>
	            <a id="head_logout" href="javascript:void(0)" onclick="logoutSubmit();"><span class="userInfor">退出</span></a></p>
	            </c:when>
            <c:otherwise>
            	<c:choose>
	            	<c:when test="${commonUserAuth != null}">
	            	<p id="head_name"><a href="javascript:void(0)" id="cardNum"><span class="userInfor"><c:out value="${commonUserAuth.username}" />&nbsp;</span></a>
	            	<a  id="head_logout" href="javascript:void(0)" onclick="logoutSubmit();"><span class="userInfor">退出</span></a></p>
	                </c:when>
                <c:otherwise>
                <a href="javascript:void(0)" id="loginButton"><span>登录</span></a>
                
                <a href="javascript:void(0)" id="cardNum"><span class="userInfor"></span></a>
				<a href="javascript:void(0)" id="head_logout" onclick = "logoutSubmit();"><span class="userInfor"></span></a>
                <div style="clear:both"></div>
                <div id="loginBox">                
                    <form id="loginForm" name="loginForm" onsubmit="return false;">
                        <fieldset id="body">
                            <fieldset>
                            <div id="namediv">一卡通：</div><input type="text" name="email" class="text_input" id="email" />
                            </fieldset>
                            
                            <fieldset>  
                            <div id="passworddiv">密码:</div><input type="password" name="password" class="text_input" id="password" />
                            </fieldset>
                            
							<div class="radio_button">
							<input type="radio" class="radio_input" value="user" name="select" checked="checked" onclick="isUser()"/>个人
							</div>
							
							<div class="radio_button">
							<input type="radio" class="radio_input" value="league" name="select" onclick="isLeague()"/>社团
							</div>
							
                            <input type="submit" id="login" value="OK" onclick="enter();return false;" />
                        </fieldset>  
                    </form>
                </div>
                  </c:otherwise>
                </c:choose>
            </c:otherwise>
            </c:choose>
            </div>
    <!-- Login Ends Here -->